package com.eascs.web.o2o.scheduler.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the payments_plan database table.
 * 
 */
@Entity
@Table(name="payments_plan")
@NamedQuery(name="PaymentsPlan.findAll", query="SELECT p FROM PaymentsPlan p")
public class PaymentsPlan implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="payments_id")
	private String paymentsId;

	@Column(name="refund_no")
	private String refundNo;
	
	@Column(name="bill_code")
	private String billCode;

	@Column(name="customer_name")
	private String customerName;

	@Column(name="fact_interest")
	private BigDecimal factInterest;

	@Column(name="fact_principal")
	private BigDecimal factPrincipal;

	@Column(name="id_number")
	private String idNumber;

	@Column(name="is_expire")
	private String isExpire;

	@Column(name="is_finish")
	private String isFinish;

	@Column(name="oprate_psn")
	private String opratePsn;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="oprate_time")
	private Date oprateTime;

	@Column(name="pay_interest")
	private BigDecimal payInterest;

	@Column(name="pay_principal")
	private BigDecimal payPrincipal;

	@Column(name="pay_total")
	private BigDecimal payTotal;

	private int periods;

	@Temporal(TemporalType.DATE)
	@Column(name="plan_date")
	private Date planDate;

	@Temporal(TemporalType.DATE)
	@Column(name="repayment_date")
	private Date repaymentDate;

	@Column(name="repayment_status")
	private String repaymentStatus;

	@Column(name="residual_principal")
	private BigDecimal residualPrincipal;

	
	@Column(name="source_type")
	private String sourceType;

	public String getPaymentsId() {
		return this.paymentsId;
	}

	public void setPaymentsId(String paymentsId) {
		this.paymentsId = paymentsId;
	}

	public String getBillCode() {
		return this.billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	public String getCustomerName() {
		return this.customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public BigDecimal getFactInterest() {
		return this.factInterest;
	}

	public void setFactInterest(BigDecimal factInterest) {
		this.factInterest = factInterest;
	}

	public BigDecimal getFactPrincipal() {
		return this.factPrincipal;
	}

	public void setFactPrincipal(BigDecimal factPrincipal) {
		this.factPrincipal = factPrincipal;
	}

	public String getIdNumber() {
		return this.idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public String getIsExpire() {
		return this.isExpire;
	}

	public void setIsExpire(String isExpire) {
		this.isExpire = isExpire;
	}

	public String getIsFinish() {
		return this.isFinish;
	}

	public void setIsFinish(String isFinish) {
		this.isFinish = isFinish;
	}

	public String getOpratePsn() {
		return this.opratePsn;
	}

	public void setOpratePsn(String opratePsn) {
		this.opratePsn = opratePsn;
	}

	public Date getOprateTime() {
		return this.oprateTime;
	}

	public void setOprateTime(Date oprateTime) {
		this.oprateTime = oprateTime;
	}

	public BigDecimal getPayInterest() {
		return this.payInterest;
	}

	public void setPayInterest(BigDecimal payInterest) {
		this.payInterest = payInterest;
	}

	public BigDecimal getPayPrincipal() {
		return this.payPrincipal;
	}

	public void setPayPrincipal(BigDecimal payPrincipal) {
		this.payPrincipal = payPrincipal;
	}

	public BigDecimal getPayTotal() {
		return this.payTotal;
	}

	public void setPayTotal(BigDecimal payTotal) {
		this.payTotal = payTotal;
	}

	public int getPeriods() {
		return this.periods;
	}

	public void setPeriods(int periods) {
		this.periods = periods;
	}

	public Date getPlanDate() {
		return this.planDate;
	}

	public void setPlanDate(Date planDate) {
		this.planDate = planDate;
	}

	public Date getRepaymentDate() {
		return this.repaymentDate;
	}

	public void setRepaymentDate(Date repaymentDate) {
		this.repaymentDate = repaymentDate;
	}

	public String getRepaymentStatus() {
		return this.repaymentStatus;
	}

	public void setRepaymentStatus(String repaymentStatus) {
		this.repaymentStatus = repaymentStatus;
	}

	public BigDecimal getResidualPrincipal() {
		return this.residualPrincipal;
	}

	public void setResidualPrincipal(BigDecimal residualPrincipal) {
		this.residualPrincipal = residualPrincipal;
	}

	public String getSourceType() {
		return sourceType;
	}

	public void setSourceType(String sourceType) {
		this.sourceType = sourceType;
	}

	public String getRefundNo() {
		return refundNo;
	}

	public void setRefundNo(String refundNo) {
		this.refundNo = refundNo;
	}
	

}